package com.ruoyi.quality.domain;

import com.ruoyi.safe.domain.BizSafeAttach;
import lombok.Builder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.List;

/**
 * 问题规范库对象 t_quality_questions
 * 
 * @author lxg
 * @date 2024-02-02
 */
public class TQualityQuestions extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 质量问题 */
    @Excel(name = "质量问题")
    private String questionInfo;

    /** 成因 */
    @Excel(name = "成因")
    private String questionOrigin;

    /** 防范措施 */
    @Excel(name = "防范措施")
    private String preventiveMeasures;

    /** 质量问题等级(取字典) */
    @Excel(name = "质量问题等级(取字典)", dictType = "list_quality_level")
    private String questionLevel;

    /** 规范依据 */
    @Excel(name = "规范依据")
    private String normativeBasis;

    /** 规范内容 */
    @Excel(name = "规范内容")
    private String normativeInfo;

    /** 数据来源 */
    @Excel(name = "数据来源")
    private String dataSource;

    /** 质量照片 */
    private List<String> pic;

    /** 质量照片 */
    private String pics;

    /** 排序 */
    @Excel(name = "排序")
    private Integer sort;

    /** 分类状态（0正常 1停用） */
    @Excel(name = "分类状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 参建单位 */
    private String typeNo;
    /** 参建单位名称 */
    @Excel(name = "参建单位")
    private String typeName;
    /*图片附件*/
    private List<BizSafeAttach> picsArr;

    public List<BizSafeAttach> getPicsArr() {
        return picsArr;
    }

    public void setPicsArr(List<BizSafeAttach> picsArr) {
        this.picsArr = picsArr;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public String getTypeNo() {
        return typeNo;
    }

    public void setTypeNo(String typeNo) {
        this.typeNo = typeNo;
    }

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setQuestionInfo(String questionInfo) 
    {
        this.questionInfo = questionInfo;
    }

    public String getQuestionInfo() 
    {
        return questionInfo;
    }
    public void setQuestionOrigin(String questionOrigin) 
    {
        this.questionOrigin = questionOrigin;
    }

    public String getQuestionOrigin() 
    {
        return questionOrigin;
    }
    public void setPreventiveMeasures(String preventiveMeasures) 
    {
        this.preventiveMeasures = preventiveMeasures;
    }

    public String getPreventiveMeasures() 
    {
        return preventiveMeasures;
    }
    public void setQuestionLevel(String questionLevel) 
    {
        this.questionLevel = questionLevel;
    }

    public String getQuestionLevel() 
    {
        return questionLevel;
    }
    public void setNormativeBasis(String normativeBasis) 
    {
        this.normativeBasis = normativeBasis;
    }

    public String getNormativeBasis() 
    {
        return normativeBasis;
    }
    public void setNormativeInfo(String normativeInfo) 
    {
        this.normativeInfo = normativeInfo;
    }

    public String getNormativeInfo() 
    {
        return normativeInfo;
    }
    public void setDataSource(String dataSource) 
    {
        this.dataSource = dataSource;
    }

    public String getDataSource() 
    {
        return dataSource;
    }

    public List<String> getPic() {
        return pic;
    }

    public void setPic(List<String> pic) {
        this.pic = pic;
    }

    public void setSort(Integer sort)
    {
        this.sort = sort;
    }

    public Integer getSort() 
    {
        return sort;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public String getPics() {
        return pics;
    }

    public void setPics(String pics) {
        this.pics = pics;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("questionInfo", getQuestionInfo())
            .append("questionOrigin", getQuestionOrigin())
            .append("preventiveMeasures", getPreventiveMeasures())
            .append("questionLevel", getQuestionLevel())
            .append("normativeBasis", getNormativeBasis())
            .append("normativeInfo", getNormativeInfo())
            .append("dataSource", getDataSource())
            .append("pic", getPic())
            .append("remark", getRemark())
            .append("sort", getSort())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
